from util.bound_numbers import exp

__author__ = 'Douglas'


class ActivationSigmoid:
    @staticmethod
    def activation_function(d):
        return 1.0 / (1 + exp(-1.0 * d))

    @staticmethod
    def derivative_function(d):
        return d * (1.0 - d)